<?php

namespace App\Entity;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;

/**
 * @ApiResource()
 * @ORM\Entity(repositoryClass="App\Repository\StatisticRepository")
 */
class Statistic
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @Groups({"app"})
     * @ORM\Column(type="integer")
     */
    private $task;

    /**
     * @Groups({"app"})
     * @ORM\Column(type="integer")
     */
    private $service;

    /**
     * @Groups({"app"})
     * @ORM\Column(type="integer")
     */
    private $orders;

    /**
     * @Groups({"app"})
     * @ORM\Column(type="integer")
     */
    private $user;

    /**
     * @Groups({"app"})
     * @ORM\Column(type="integer")
     */
    private $shop;

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getTask(): ?int
    {
        return $this->task;
    }

    public function setTask(int $task): self
    {
        $this->task = $task;

        return $this;
    }

    public function getService(): ?int
    {
        return $this->service;
    }

    public function setService(int $service): self
    {
        $this->service = $service;

        return $this;
    }

    public function getOrders(): ?int
    {
        return $this->orders;
    }

    public function setOrders(int $orders): self
    {
        $this->orders = $orders;

        return $this;
    }

    public function getUser(): ?int
    {
        return $this->user;
    }

    public function setUser(int $user): self
    {
        $this->user = $user;

        return $this;
    }

    public function getShop(): ?int
    {
        return $this->shop;
    }

    public function setShop(int $shop): self
    {
        $this->shop = $shop;

        return $this;
    }
}
